﻿@{
    ViewData["Title"] = "Home Page";
}

<div class="text-center">
    <h1 class="display-4">Welcome</h1>
    <p>Learn about <a href="https://learn.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>

@if (User.Identity.IsAuthenticated)
{
    <div class="container mt-5">
        <h2>Welcome, @User.Identity.Name</h2>
        <a asp-controller="Home" asp-action="Profile" class="btn btn-primary">View Profile</a>
    </div>
}